package cn.maihe.elg.operation.centers.quanzhou.dto.handler;

import cn.maihe.elg.operation.centers.epoint.dto.EpointBaseRespDTO;
import cn.maihe.elg.operation.centers.quanzhou.dto.QuanzhouBaseRespDTO;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description 泉州中心理赔申请响应DTO
 * @Author Generated
 * @Date 2025/01/21
 */
@Getter
@Setter
public class QuanzhouClaimRespDTO extends EpointBaseRespDTO {
    
    /**
     * 理赔跳转地址（无需跳转则为空）
     */
    private String claimurl;
    
    public QuanzhouClaimRespDTO() {
        super();
    }
    
    public QuanzhouClaimRespDTO(String code, String message, String claimurl) {
        super(code, message);
        this.claimurl = claimurl;
    }

    public static QuanzhouClaimRespDTO success(String message, String claimurl) {
        return null;
    }

    private void setData(ClaimData claimData) {
    }

    public static QuanzhouClaimRespDTO failure(String message) {
        return new QuanzhouClaimRespDTO("0", message, null);
    }
    
    @Getter
    @Setter
    public static class ClaimData {
        private String claimurl;
        
        public ClaimData(String claimurl) {
            this.claimurl = claimurl;
        }
    }
}